/**
 * 
 */
package com.antilia.infomaresme;

import java.io.IOException;

import javax.servlet.FilterChain;
import javax.servlet.ServletException;
import javax.servlet.ServletRequest;
import javax.servlet.ServletResponse;
import javax.servlet.http.HttpServletRequest;

import org.apache.wicket.protocol.http.WicketFilter;

/**
 * @author Ernesto
 *
 */
public class InfomaresmeFilter extends WicketFilter {

	/**
	 * 
	 */
	public InfomaresmeFilter() {
	}

	@Override
	public void doFilter(ServletRequest request, ServletResponse response,
			FilterChain chain) throws IOException, ServletException {
		if(request instanceof HttpServletRequest) {
			HttpServletRequest servletRequest = (HttpServletRequest)request;
			if(servletRequest.getRequestURI().contains("infomaresme/config.js")) {
		       return;
			}
		}
		super.doFilter(request, response, chain);
	}
}
